package com.heima.feign;

import com.heima.model.article.dtos.AuthorDto;
import com.heima.model.media.dtos.WmNewsResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-article")
public interface ArticleFeignClient {

    //保存文章,保存文章内容
    @PostMapping("/api/v1/article/save")
    public Long save(@RequestBody WmNewsResultDTO dto);

    @PostMapping("/api/v1/author/save")
    public Integer saveAuthor(@RequestBody AuthorDto dto);
}
